package com.finger.gulimall.auth.feign;

import com.finger.common.utils.R;
import com.finger.gulimall.auth.vo.LoginVo;
import com.finger.gulimall.auth.vo.RegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberRemoteService {
    @PostMapping("member/member/register")
    public R register(@RequestBody RegistVo registVo);

    @PostMapping("member/member/login")
    public R login(@RequestBody LoginVo loginVo);

}
